////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   ITEM_CLASS
// AUTHOR           :   Alex Cheung 
// DATE CREATE      :   2006/01/20
// DESCRIPTION      :   a CRITERIA file for the function, ITEM_CLASS
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/01/20   Alex Cheung     1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.catalog.itemClass.criteria;

import com.erp.framework.model.criteria.SimplePageEditStyleSrchCriteria;

/**
* <p>A <strong>SrchCriteria</strong>
* getter and setter methods for all of the bean properties, and implements
* <code>Serializable</code>, as required by the JavaBean specification
* The main purpose for this bean is to store the user search criteria input
* for database query.
*
* @author          Alex Cheung 
* @version 1.0     2006/01/20
* @since           FrameWork 1.0
*
*/

// Note:
// Currently only generates the first 5 fields of a table
// However, this number can be set in GenConstants.NO_CRITERIA

public class ItemClassSrchCriteria extends SimplePageEditStyleSrchCriteria {

	//Searching Criteria Attributes (DB Table Name: T_ITEM_CLASS)
	private String srchCompanyCode;                  //DB Column Name: COMPANY_CODE
	private String srchStatus;                       //DB Column Name: STATUS
	private String srchItemLineFr;                   //DB Column Name: ITEM_LINE
	private String srchItemLineTo;                   //DB Column Name: ITEM_LINE
	private String srchItemCategoryFr;               //DB Column Name: ITEM_CATEGORY
	private String srchItemCategoryTo;               //DB Column Name: ITEM_CATEGORY
	private String srchItemClassFr;                  //DB Column Name: ITEM_CLASS
	private String srchItemClassTo;                  //DB Column Name: ITEM_CLASS
	private String srchItemClassDescFr;              //DB Column Name: ITEM_CLASS_DESC
	private String srchItemClassDescTo;              //DB Column Name: ITEM_CLASS_DESC

	/**
	* Converts to a string representing the data in this object.
	* A new <code>String</code> object is allocated and initialized to 
	* contain the character sequence currently represented by this 
	* object. This <code>String</code> is then returned. Subsequent 
	* changes to this object do not affect the contents of the 
	* <code>String</code>. 
	*
	* @return     a string representation of the object.
	* @see        java.lang.Object#toString()
	* @author     Alex Cheung 
	* @since      FrameWork 1.0
	*/
	public String toString() {
		String pkStr = "PK: {srchItemLineFr = " + this.srchItemLineFr
			+ "\n, srchItemLineTo = " + this.srchItemLineTo
			+ "\n, srchItemCategoryFr = " + this.srchItemCategoryFr
			+ "\n, srchItemCategoryTo = " + this.srchItemCategoryTo
			+ "\n, srchItemClassFr = " + this.srchItemClassFr
			+ "\n, srchItemClassTo = " + this.srchItemClassTo + "}\n";

		String colStr = "COL: {srchItemClassDescFr = " + this.srchItemClassDescFr
			+ "\n, srchItemClassDescTo = " + this.srchItemClassDescTo + "}\n";

		String mandatoryStr = "{srchCompanyCode = " + this.srchCompanyCode
			+ "\n, srchStatus = " + this.srchStatus
			+ "}\n";

		return "toString() is:\n" + mandatoryStr + pkStr + colStr;
	}

	////////////////////////////////////////////////////////////////////////////////
	//Generated Accessors (get/set methods) for searching criterias
	////////////////////////////////////////////////////////////////////////////////

	public String getSrchCompanyCode() {
		return this.srchCompanyCode;
	}

	public String getSrchStatus() {
		return this.srchStatus;
	}

	public String getSrchItemLineFr() {
		return this.srchItemLineFr;
	}

	public String getSrchItemLineTo() {
		return this.srchItemLineTo;
	}

	public String getSrchItemCategoryFr() {
		return this.srchItemCategoryFr;
	}

	public String getSrchItemCategoryTo() {
		return this.srchItemCategoryTo;
	}

	public String getSrchItemClassFr() {
		return this.srchItemClassFr;
	}

	public String getSrchItemClassTo() {
		return this.srchItemClassTo;
	}

	public String getSrchItemClassDescFr() {
		return this.srchItemClassDescFr;
	}

	public String getSrchItemClassDescTo() {
		return this.srchItemClassDescTo;
	}

	public void setSrchCompanyCode(String srchCompanyCode) {
		this.srchCompanyCode = srchCompanyCode;
	}

	public void setSrchStatus(String srchStatus) {
		this.srchStatus = srchStatus;
	}

	public void setSrchItemLineFr(String srchItemLineFr) {
		this.srchItemLineFr = srchItemLineFr;
	}

	public void setSrchItemLineTo(String srchItemLineTo) {
		this.srchItemLineTo = srchItemLineTo;
	}

	public void setSrchItemCategoryFr(String srchItemCategoryFr) {
		this.srchItemCategoryFr = srchItemCategoryFr;
	}

	public void setSrchItemCategoryTo(String srchItemCategoryTo) {
		this.srchItemCategoryTo = srchItemCategoryTo;
	}

	public void setSrchItemClassFr(String srchItemClassFr) {
		this.srchItemClassFr = srchItemClassFr;
	}

	public void setSrchItemClassTo(String srchItemClassTo) {
		this.srchItemClassTo = srchItemClassTo;
	}

	public void setSrchItemClassDescFr(String srchItemClassDescFr) {
		this.srchItemClassDescFr = srchItemClassDescFr;
	}

	public void setSrchItemClassDescTo(String srchItemClassDescTo) {
		this.srchItemClassDescTo = srchItemClassDescTo;
	}

}
